import request from '@/utils/request'

// 获取长期车辆列表
export function getList(params) {
  return request({
    // url: '/vue-admin-template/banner/list',
    url: '/system/longTimeCar/list',
    method: 'get',
    params
  })
}

// 新增长期车辆
export function longTimeCar(data) {
  return request({
    url: '/system/longTimeCar',
    method: 'post',
    data,
  })
}

// 修改长期车辆
export function longTimeCarEdit(data) {
  return request({
    url: '/system/longTimeCar',
    method: 'put',
    data,
  })
}

// 删除长期车辆
export function longTimeCarDelete(id) {
  return request({
    url: '/system/longTimeCar/'+id,
    method: 'delete'
  })
}
// 导出车辆列表
export function exportData(params) {
  return request({
    url: '/system/longTimeCar/export',
    method: 'get',
    params
  })
}
// 导入车辆列表
export function importData(data) {
  return request({
    url: '/system/longTimeCar/importData',
    method: 'post',
    data
  })
}

// 检测车辆信息
export function longTimeCarCheck(data) {
  return request({
    url: '/system/longTimeCar/toExamine',
    method: 'put',
    data
  })
}


// 获取长期车辆进出记录列表
export function longTimeCarInOutList(params) {
  return request({
    url: '/system/longTimeCarInOut/list',
    method: 'get',
    params
  })
}

// 获取长期车辆进出详情
export function longTimeCarInOutDetail(id) {
  return request({
    url: '/system/longTimeCarInOut/'+id,
    method: 'get'
  })
}

// 导出长期车辆进出记录列表
export function longTimeCarInOutExport(params) {
  return request({
    url: '/system/longTimeCarInOut/export',
    method: 'get',
    params
  })
}
